package org.example.prototypePattern;

import lombok.Data;

/**
 * @BelongsProject: javaFoundation
 * @BelongsPackage: org.example.prototypePattern
 * @Author: dtq
 * @CreateTime: 2023-12-14  16:38
 * @Description: TODO
 * @Version: 1.0
 */
@Data
public class TeacherSecond implements Cloneable{
    private String name;
    private String idNo;

    @Override
    public TeacherSecond clone() {
        try {
            TeacherSecond clone = (TeacherSecond) super.clone();
            return clone;
        } catch (CloneNotSupportedException e) {
            throw new AssertionError();
        }
    }
}
